var express = require('express');
var router = express.Router();
var dataCtrl=require("../controllers/comment.controller");

router.post('/', dataCtrl.create);
router.put('/:id', dataCtrl.update);
router.get('/:id', dataCtrl.get);
router.delete('/:id',dataCtrl.remove);
router.post('/removes',dataCtrl.removes);
router.post('/list',dataCtrl.list);
router.post('/lists/:user',dataCtrl.lists)
router.post('/list/:_id',dataCtrl.listreply);
router.post('/news/:newsid',dataCtrl.newslist);
router.get('/replynum/:id',dataCtrl.getreplaynum)
module.exports = router;